using System;
using System.Web.Security;
using RMH.Entities;

namespace RMH.Services.MembershipProvider
{
    public static class StaffExtensions
    {
        public static MembershipUser ToMemberShipUser(this Staff staff)
        {
            // dear lord, providers blow.
            MembershipUser user = new MembershipUser("RMHMembershipProvider", staff.UserName,
                                                     "", staff.Email, "","",true, false,DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue);
            return user;
        }
    }
}